from django.conf.urls.defaults import patterns, url, include
from django.conf import settings

from dajaxice.core import dajaxice_autodiscover
dajaxice_autodiscover()

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    (r'^%s/' % settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
    (r'^i18n/', include('django.conf.urls.i18n')),
    url(r'^$', 'ava.views.index',),
    url(r'^mentions_legales/', 'ava.views.mentions_legales',),
    url(r'^(?P<tag>\w+)/organisation/', 'ava.views.organisation'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/qui_inviter/', 'ava.views.qui_inviter'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/custom/', 'ava.views.custom'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/ok_orga/', 'ava.views.ok_orga'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/choix/(?P<invite_id>\d+)/', 'ava.views.choix'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/ok_choix/(?P<invite_id>\d+)/', 'ava.views.ok_choix'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/manage/(?P<invite_id>\d+)/', 'ava.views.manage'),
    url(r'^restau/(?P<invit_id>\d+)/resultat/(?P<invite_id>\d+)/', 'ava.views.resultat_restau'),
    url(r'^(?P<tag>\w+)/(?P<invit_id>\d+)/latence/', 'ava.views.latence'),
    
    
    
    
     # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
